package com.redmoon.weixin.mgr;

import cn.js.fan.util.ErrMsgException;
import cn.js.fan.util.ResKeyException;
import cn.js.fan.util.StrUtil;
import com.cloudweb.oa.api.IWorkWeixinService;
import com.cloudweb.oa.entity.Department;
import com.cloudweb.oa.exception.ValidateException;
import com.cloudweb.oa.service.IDepartmentService;
import com.cloudweb.oa.service.IUserService;
import com.cloudweb.oa.utils.SpringUtil;
import com.cloudwebsoft.framework.util.LogUtil;
import com.redmoon.oa.dept.DeptDb;
import com.redmoon.weixin.Config;
import com.redmoon.weixin.enums.Enum;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;

import java.util.HashMap;
import java.util.List;

public class WXAddressCallBack {
    public String contentXml;

    /**
     * 处理回调类型
     * @throws ErrMsgException
     */
    public void dispose() throws ErrMsgException {
        IWorkWeixinService workWeixinService = SpringUtil.getBean(IWorkWeixinService.class);
        workWeixinService.disposeCallBack(contentXml);
    }
}
